import wx

class wxclass(wx.Frame):
    def __init__(self, paranet, id):
        wx.Frame.__init__(self,paranet,id, 'First Window', size=(300,200))   
        panel=wx.Panel(self)

        pic=wx.Image('bleft.png', wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.button=wx.BitmapButton(panel,-1, pic, pos=(10,10))
        self.Bind=(wx.EVT_BUTTON, self.DoSomething, self.button)
        self.button.SetDefault()
        
    def DoSomething(self, event):
        self.Destroy()

if __name__ == "__main__":
    app=wx.PySimpleApp()
    frame=wxclass(paranet=None, id=-1)
    frame.Show()
    app.MainLoop()